<template>
  <div style="height: 100%;position: relative;padding-left: 200px;" class="body">
    <div class="spinner" v-if="$store.state.loadingFlag">
      <div class="spinner-container container1">
        <div class="circle1"></div>
        <div class="circle2"></div>
        <div class="circle3"></div>
        <div class="circle4"></div>
      </div>
      <div class="spinner-container container2">
        <div class="circle1"></div>
        <div class="circle2"></div>
        <div class="circle3"></div>
        <div class="circle4"></div>
      </div>
      <div class="spinner-container container3">
        <div class="circle1"></div>
        <div class="circle2"></div>
        <div class="circle3"></div>
        <div class="circle4"></div>
      </div>
    </div>
    <el-row class="a_top "
            style="text-align:left;border-bottom:1px solid #EBEBEB;height: 80px!important;background-color: rgba(255,255,255,1);">
      <el-col :span="24" style="height: 80px;position: relative;">
        <ul style="height: 100%;">
          <li class="carLi" style="font-weight: bold">卡券列表</li>
          <li class="carLi" style="font-weight: bold" v-if="couponType==2">新建代金券</li>
          <li class="carLi" style="font-weight: bold" v-if="couponType==3">新建折扣券</li>
          <li class="carLi" style="font-weight: bold" v-if="couponType==5">新建普通券</li>
        </ul>
        <!--<div class="grid-content" style="color: #F58534;font-size: 18px;position: absolute;top:0;">推广列表</div>-->
      </el-col>
    </el-row>
    <!--代金券-->
    <div class="menu daijin centerBox "  v-if="couponType==2">
      <div class="centent">
        <ul>
          <li>
            <span class="name">{{cashForm.couponName}}</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.couponName"  class="coupon_bu" :maxlength=Number(9)></el-input>
            </div>
          </li>
          <li>
            <span class="name">{{cashForm.inventory}}</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.inventory"  class="coupon_bu"  :maxlength=Number(10)></el-input>
              <span class="font">张</span>
            </div>
          </li>
          <li>
            <span class="name">{{cashForm.limit}}</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.limit"  class="coupon_bu" :maxlength=Number(2) ></el-input>
              <span class="font">张</span>
            </div>
          </li>
          <li>
            <span class="name">{{cashForm.parValue}}</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.parValue"  class="coupon_bu"  type="number"></el-input>
              <span class="font">元</span>
            </div>
          </li>
          <!--<li v-if="couponType==2">-->
            <!--<span class="name">{{cashForm.parValue1}}</span>-->
            <!--<div class="coupon_certer">-->
              <!--<el-input v-model="cashForms.parValue1"  class="coupon_bu"-->
              <!--&gt;</el-input>-->
              <!--<span class="font">元</span>-->
            <!--</div>-->
          <!--</li>-->

          <li>
            <span class="name">{{cashForm.userLimit}}</span>
            <div class="coupon_certer">
              <!--<span style="margin-right:20px;">消费满</span>-->
              <el-input v-model="cashForms.userLimit"  class="coupon_bu" type="" :maxlength=Number(5)></el-input>
              <span class="font">元可用</span><span class="limitTips">(*0元表示无门槛)</span>
            </div>
          </li>
          <li>
            <span class="name">券描述：</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.limitExplain"  class="coupon_bu" :maxlength=Number(16) ></el-input>
            </div>
          </li>
          <li>
            <span class="name">指定商户：</span>
            <el-select v-model="store_" placeholder="请选择商家" filterable class="menu-select" style="margin-left: 12px;width: 214px;" >
              <el-option
                v-for="item in Delivery_status"
                :key="item.storeId"
                :label="item.storeName"
                :value="item.storeId">
              </el-option>
            </el-select>
          </li>
          <li>
            <span class="name">{{cashForm.time}}</span>
            <div class="coupon_certer">
              <el-row>
                <el-col>
                  <div class="grid-content bg-purple" style="margin-left:0;">
                    <div class="book">
                      <!--<span style="font-size: 14px;color:#656D78;">有效期</span>-->
                      <el-date-picker
                        v-model="value0"
                        type="date"
                        placeholder="选择日期范围" id="c_input1"
                        :picker-options="pickerOptions0">
                      </el-date-picker>
                      <span
                        style="font-size: 14px;color:#656D78;display: inline-block;margin-left: 5px; ">&nbsp; —　</span>
                      <el-date-picker
                        v-model="value1"
                        type="date"
                        placeholder="选择日期范围" id="c_input2"
                        :picker-options="pickerOptions0">
                      </el-date-picker>
                    </div>
                  </div>
                </el-col>
              </el-row>
              <div class="time_radio" style="margin-top: 10px;">
                <!--<el-checkbox-group v-model="checkList_" class="week">-->
                <!--<el-checkbox label="周末不可用" value="周末不可用" style="margin-bottom: 10px;"></el-checkbox>-->
                <!--<br>-->
                <!--<el-checkbox label="晚市不可用(17:00-22:00)" value="晚市不可用(17:00-22:00)"></el-checkbox>-->
                <!--</el-checkbox-group>-->
                <el-radio class="radio" v-model="radio" label="1">有效期内，任意时段</el-radio>
                <el-radio class="radio" v-model="radio" label="2">有效期内，指定时段</el-radio>
              </div>
              <div class="time_radio_2" v-if="radio==2">
                <el-checkbox-group v-model="checkList" class="week">
                  <el-checkbox label="周一"></el-checkbox>
                  <el-checkbox label="周二"></el-checkbox>
                  <el-checkbox label="周三"></el-checkbox>
                  <el-checkbox label="周四"></el-checkbox>
                  <el-checkbox label="周五"></el-checkbox>
                  <el-checkbox label="周六"></el-checkbox>
                  <el-checkbox label="周日"></el-checkbox>
                </el-checkbox-group>
                <div class="setDate">
                  <div v-for="(item,index) in hourMinute" :key="index" class="hourMinute">
                    <el-input v-model="item.value[0]" placeholder="开始时间" class="inp"></el-input>
                    <span class="_xian">一</span>
                    <el-input v-model="item.value[1]" placeholder="结束时间" class="inp" ></el-input>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="addDate"
                          v-if='index==0&&hourMinute.length==1'>添加</span>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="addDate"
                          v-if='hourMinute.length-1==index&&hourMinute.length>1'>添加</span>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="delDate(index)"
                          v-if='hourMinute.length>1&&index==0'>删除</span>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="delDate(index)"
                          v-if='hourMinute.length-1!=index&&index!=0'>删除</span>
                  </div>
                </div>
              </div>
              <div></div>
            </div>
          </li>
          <li>
            <span class="name">{{cashForm.instructions}}</span>
            <div class="funds">
              <el-input type="textarea" placeholder="最多200个字" class="coupon_area" v-model="cashForms.instructions"
                        :autosize="{ minRows: 4, maxRows: 6}" resize="none" :maxlength=Number(200)></el-input>
            </div>
          </li>
        </ul>
        <div style="margin-top: 40px;">
          <el-button type="primary" style="width: 80px;" @click="goBack">返 回</el-button>
          <el-button type="primary" style="width: 80px;" @click="saveCoupon">保 存</el-button>
        </div>
      </div>
      <el-dialog style="text-align: center;position: absolute;" :visible.sync="dialogVisible" size="tiny" :modal="false"
                 :close-on-click-modal="false">
        <span style="font-size: 14px;color: rgba(89,115,128,1)">{{dialogData}}</span>
        <span slot="footer" class="dialog-footer">
                  <el-button @click="dialogVisible = false" class="cp_qx">确 定</el-button>
                </span>
      </el-dialog>
    </div>
    <!--折扣券-->
    <div class="menu daijin centerBox "  v-if="couponType==3">
      <div class="centent">
        <ul>
          <li>
            <span class="name">{{cashForm.couponName}}</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.couponName"  class="coupon_bu" :maxlength=Number(9)></el-input>
            </div>
          </li>
          <li>
            <span class="name">{{cashForm.inventory}}</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.inventory"  class="coupon_bu" :maxlength=Number(10)></el-input>
              <span class="font">张</span>
            </div>
          </li>
          <li>
            <span class="name">{{cashForm.limit}}</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.limit"  class="coupon_bu"  :maxlength=Number(2) ></el-input>
              <span class="font">张</span>
            </div>
          </li>
          <li>
            <span class="name">折扣:</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.parValue" class="coupon_bu"></el-input>
              <span class="font">折</span>
            </div>
          </li>

          <!--<li>-->
            <!--<span class="name">{{cashForm.userLimit}}</span>-->
            <!--<div class="coupon_certer">-->
              <!--&lt;!&ndash;<span style="margin-right:20px;">消费满</span>&ndash;&gt;-->
              <!--<el-input v-model="cashForms.userLimit"  class="coupon_bu" type=""-->
                        <!--onkeypress="return event.keyCode>=48&&event.keyCode<=57"-->
                        <!--:maxlength=Number(5)></el-input>-->
              <!--<span class="font">元可用</span><span class="limitTips">(*0元表示无门槛)</span>-->
            <!--</div>-->
          <!--</li>-->
          <li>
            <span class="name">券描述：</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.limitExplain"  class="coupon_bu" :maxlength=Number(16) ></el-input>
            </div>
          </li>
          <li>
            <span class="name">指定商户：</span>
            <el-select v-model="store_" placeholder="请选择商家" filterable class="menu-select" style="margin-left: 12px;width: 214px;" >
              <el-option
                v-for="item in Delivery_status"
                :key="item.storeId"
                :label="item.storeName"
                :value="item.storeId">
              </el-option>
            </el-select>
          </li>
          <li>
            <span class="name">{{cashForm.time}}</span>
            <div class="coupon_certer">
              <el-row>
                <el-col>
                  <div class="grid-content bg-purple" style="margin-left:0;">
                    <div class="book">
                      <!--<span style="font-size: 14px;color:#656D78;">有效期</span>-->
                      <el-date-picker
                        v-model="value0"
                        type="date"
                        placeholder="选择日期范围" id="c_input1"
                        :picker-options="pickerOptions0">
                      </el-date-picker>
                      <span
                        style="font-size: 14px;color:#656D78;display: inline-block;margin-left: 5px; ">&nbsp; —　</span>
                      <el-date-picker
                        v-model="value1"
                        type="date"
                        placeholder="选择日期范围" id="c_input2"
                        :picker-options="pickerOptions0">
                      </el-date-picker>
                    </div>
                  </div>
                </el-col>
              </el-row>
              <div class="time_radio" style="margin-top: 10px;">
                <!--<el-checkbox-group v-model="checkList_" class="week">-->
                <!--<el-checkbox label="周末不可用" value="周末不可用" style="margin-bottom: 10px;"></el-checkbox>-->
                <!--<br>-->
                <!--<el-checkbox label="晚市不可用(17:00-22:00)" value="晚市不可用(17:00-22:00)"></el-checkbox>-->
                <!--</el-checkbox-group>-->
                <el-radio class="radio" v-model="radio" label="1">有效期内，任意时段</el-radio>
                <el-radio class="radio" v-model="radio" label="2">有效期内，指定时段</el-radio>
              </div>
              <div class="time_radio_2" v-if="radio==2">
                <el-checkbox-group v-model="checkList" class="week">
                  <el-checkbox label="周一"></el-checkbox>
                  <el-checkbox label="周二"></el-checkbox>
                  <el-checkbox label="周三"></el-checkbox>
                  <el-checkbox label="周四"></el-checkbox>
                  <el-checkbox label="周五"></el-checkbox>
                  <el-checkbox label="周六"></el-checkbox>
                  <el-checkbox label="周日"></el-checkbox>
                </el-checkbox-group>
                <div class="setDate">
                  <div v-for="(item,index) in hourMinute" :key="index" class="hourMinute">
                    <el-input v-model="item.value[0]" placeholder="开始时间" class="inp"></el-input>
                    <span class="_xian">一</span>
                    <el-input v-model="item.value[1]" placeholder="结束时间" class="inp" ></el-input>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="addDate"
                          v-if='index==0&&hourMinute.length==1'>添加</span>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="addDate"
                          v-if='hourMinute.length-1==index&&hourMinute.length>1'>添加</span>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="delDate(index)"
                          v-if='hourMinute.length>1&&index==0'>删除</span>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="delDate(index)"
                          v-if='hourMinute.length-1!=index&&index!=0'>删除</span>
                  </div>
                </div>
              </div>
              <div></div>
            </div>
          </li>
          <li>
            <span class="name">{{cashForm.instructions}}</span>
            <div class="funds">
              <el-input type="textarea" placeholder="最多200个字" class="coupon_area" v-model="cashForms.instructions"
                        :autosize="{ minRows: 4, maxRows: 6}" resize="none" :maxlength=Number(200)></el-input>
            </div>
          </li>
        </ul>
        <div style="margin-top: 40px;">
          <el-button type="primary" style="width: 80px;" @click="goBack">返 回</el-button>
          <el-button type="primary" style="width: 80px;" @click="saveCoupon">保 存</el-button>
        </div>
      </div>
      <el-dialog style="text-align: center;position: absolute;" :visible.sync="dialogVisible" size="tiny" :modal="false"
                 :close-on-click-modal="false">
        <span style="font-size: 14px;color: rgba(89,115,128,1)">{{dialogData}}</span>
        <span slot="footer" class="dialog-footer">
                  <el-button @click="dialogVisible = false" class="cp_qx">确 定</el-button>
                </span>
      </el-dialog>
    </div>
    <!--普通券-->
    <div class="menu daijin centerBox "  v-if="couponType==5">
      <div class="centent">
        <ul>
          <li>
            <span class="name">{{cashForm.couponName}}</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.couponName"  class="coupon_bu" :maxlength=Number(9)></el-input>
            </div>
          </li>
          <li>
            <span class="name">{{cashForm.inventory}}</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.inventory"  class="coupon_bu"
                        onkeypress="return event.keyCode>=48&&event.keyCode<=57" :maxlength=Number(10)></el-input>
              <span class="font">张</span>
            </div>
          </li>
          <li>
            <span class="name">{{cashForm.limit}}</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.limit"  class="coupon_bu" type="number"
                        onkeypress="return event.keyCode>=48&&event.keyCode<=57"
                        :maxlength=Number(5) min="0.0"></el-input>
              <span class="font">张</span>
            </div>
          </li>

          <li>
            <span class="name">券描述：</span>
            <div class="coupon_certer">
              <el-input v-model="cashForms.limitExplain"  class="coupon_bu" :maxlength=Number(16) ></el-input>
            </div>
          </li>
          <li>
            <span class="name">指定商户：</span>
            <el-select v-model="store_" placeholder="请选择商家" filterable class="menu-select" style="margin-left: 12px;width: 214px;" >
              <el-option
                v-for="item in Delivery_status"
                :key="item.storeId"
                :label="item.storeName"
                :value="item.storeId">
              </el-option>
            </el-select>
          </li>
          <li>
            <span class="name">{{cashForm.time}}</span>
            <div class="coupon_certer">
              <el-row>
                <el-col>
                  <div class="grid-content bg-purple" style="margin-left:0;">
                    <div class="book">
                      <!--<span style="font-size: 14px;color:#656D78;">有效期</span>-->
                      <el-date-picker
                        v-model="value0"
                        type="date"
                        placeholder="选择日期范围" id="c_input1"
                        :picker-options="pickerOptions0">
                      </el-date-picker>
                      <span
                        style="font-size: 14px;color:#656D78;display: inline-block;margin-left: 5px; ">&nbsp; —　</span>
                      <el-date-picker
                        v-model="value1"
                        type="date"
                        placeholder="选择日期范围" id="c_input2"
                        :picker-options="pickerOptions0">
                      </el-date-picker>
                    </div>
                  </div>
                </el-col>
              </el-row>
              <div class="time_radio" style="margin-top: 10px;">
                <!--<el-checkbox-group v-model="checkList_" class="week">-->
                <!--<el-checkbox label="周末不可用" value="周末不可用" style="margin-bottom: 10px;"></el-checkbox>-->
                <!--<br>-->
                <!--<el-checkbox label="晚市不可用(17:00-22:00)" value="晚市不可用(17:00-22:00)"></el-checkbox>-->
                <!--</el-checkbox-group>-->
                <el-radio class="radio" v-model="radio" label="1">有效期内，任意时段</el-radio>
                <el-radio class="radio" v-model="radio" label="2">有效期内，指定时段</el-radio>
              </div>
              <div class="time_radio_2" v-if="radio==2">
                <el-checkbox-group v-model="checkList" class="week">
                  <el-checkbox label="周一"></el-checkbox>
                  <el-checkbox label="周二"></el-checkbox>
                  <el-checkbox label="周三"></el-checkbox>
                  <el-checkbox label="周四"></el-checkbox>
                  <el-checkbox label="周五"></el-checkbox>
                  <el-checkbox label="周六"></el-checkbox>
                  <el-checkbox label="周日"></el-checkbox>
                </el-checkbox-group>
                <div class="setDate">
                  <div v-for="(item,index) in hourMinute" :key="index" class="hourMinute">
                    <el-input v-model="item.value[0]" placeholder="开始时间" class="inp"></el-input>
                    <span class="_xian">一</span>
                    <el-input v-model="item.value[1]" placeholder="结束时间" class="inp" ></el-input>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="addDate"
                          v-if='index==0&&hourMinute.length==1'>添加</span>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="addDate"
                          v-if='hourMinute.length-1==index&&hourMinute.length>1'>添加</span>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="delDate(index)"
                          v-if='hourMinute.length>1&&index==0'>删除</span>
                    <span style="cursor: pointer;color: rgba(87,189,222,1);margin-left: 10px;" @click="delDate(index)"
                          v-if='hourMinute.length-1!=index&&index!=0'>删除</span>
                  </div>
                </div>
              </div>
              <div></div>
            </div>
          </li>
          <li>
            <span class="name">{{cashForm.instructions}}</span>
            <div class="funds">
              <el-input type="textarea" placeholder="最多200个字" class="coupon_area" v-model="cashForms.instructions"
                        :autosize="{ minRows: 4, maxRows: 6}" resize="none" :maxlength=Number(200)></el-input>
            </div>
          </li>
        </ul>
        <div style="margin-top: 40px;">
          <el-button type="primary" style="width: 80px;" @click="goBack">返 回</el-button>
          <el-button type="primary" style="width: 80px;" @click="saveCoupon">保 存</el-button>
        </div>
      </div>
      <el-dialog style="text-align: center;position: absolute;" :visible.sync="dialogVisible" size="tiny" :modal="false"
                 :close-on-click-modal="false">
        <span style="font-size: 14px;color: rgba(89,115,128,1)">{{dialogData}}</span>
        <span slot="footer" class="dialog-footer">
                  <el-button @click="dialogVisible = false" class="cp_qx">确 定</el-button>
                </span>
      </el-dialog>
    </div>
    <div class="mask" v-if="dialogVisible">

    </div>
  </div>
</template>
<script type="text/ecmascript-6">
  export default {
    data(){
      return {
        pickerOptions0: {
          disabledDate(time) {
            return time.getTime() < Date.now() - 8.64e7;
          }
        },
        store_:'',
        dialogVisible: false,
        limitFlag: false,
        dialogData: '',
        value0: "",
        checkList_: [],
        value1: "",
        cashForm: {
          couponName: '券名称：',
          labelName: '标签名称：',
          funds: '营销经费:',//承担经费
          inventory: '库存量：',//库存
          limit: '每人限领：',//每人限领
          parValue: '券面值：',//券面z值
          parValue1: '减价金额：',//减价金额
          parValue2: '折扣：',//折扣
          userLimit: '使用限制：',//使用限制
          limitExplain: '限制说明：',//限制说明
          limitAmount: '单笔优惠上限:',//单笔优惠上限
          instructions: '使用说明：',//使用说明：
          time: '有效期：',//有效期
          dateStart: '',
          dateEnd: '',
          radio: '有效期内,任意时段',
          ticket: '',//卡券功能
          date: '',//限制时间
          date1: '',//限制时间
          date2: '',//限制时间
          date3: '',//限制时间
          date4: '',//限制时间
          type: '',//shi否放入卡包
          desc: '',//说明
        },
        satisfyForm: {
          couponName: '',
          labelName: '',
          funds: '商家承担',//承担经费
          inventory: '',//库存
          limit: '',//每人限领
          parValue: '',//减少金额
          userLimit: '',//使用限制
          limitExplain: '',//限制说明
          dateStart: '',
          dateEnd: '',
          radio: '有效期内,任意时段',
          ticket: '',//卡券功能
          instructions: '',//使用说明
          date: '',//限制时间
          date1: '',//限制时间
          date2: '',//限制时间
          date3: '',//限制时间
          date4: '',//限制时间
          type: '',//shi否放入卡包
          desc: '',//说明

        },
        discountForm: {
          couponName: '',
          labelName: '',
          funds: '商家承担',//承担经费
          inventory: '',//库存
          limit: '',//每人限领
          parValue: '',//减少金额
          userLimit: '',//使用限制
          limitExplain: '',//限制说明
          dateStart: '',
          dateEnd: '',
          radio: '有效期内,任意时段',
          ticket: '',//卡券功能
          instructions: '',//使用说明
          date: '',//限制时间
          date1: '',//限制时间
          date2: '',//限制时间
          date3: '',//限制时间
          date4: '',//限制时间
          type: '',//shi否放入卡包
          desc: '',//说明
          limitAll: '',//单笔优惠限制
        },
        cashForms: {
          couponName: '',
          labelName: '',
          funds: '商家承担',//承担经费
          inventory: '',//库存
          limit: '',//每人限领
          parValue: '',//券面z值
          userLimit: '',//使用限制
          limitExplain: '',//限制说明
          dateStart: '',
          dateEnd: '',
          radio: '有效期内,任意时段',
          ticket: '',//卡券功能
          instructions: '',//使用说明
          date: '',//限制时间
          date1: '',//限制时间
          date2: '',//限制时间
          date3: '',//限制时间
          date4: '',//限制时间
          type: '',//shi否放入卡包
          desc: '',//说明
        },
        radio: '1',
        num: 0,
        businessTime2: false,
        businessTime3: false,
        flag: false,
        cardTrue: true,//是否放入卡包
        checkListX: [{"time": '周一', "timeStr": "MONDAY"},
          {"time": '周二', "timeStr": "TUESDAY"},
          {"time": '周三', "timeStr": "WEDNESDAY"},
          {"time": '周四', "timeStr": "THURSDAY"},
          {"time": '周五', "timeStr": "FRIDAY"},
          {"time": '周六', "timeStr": "SATURDAY"},
          {"time": '周日', "timeStr": "SUNDAY"},],//星期选择
        checkList: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],//星期选择
        hourMinute: [{num: 0, value: []}],//时间段数组
        Delivery_status:[]
      }
    },
    created(){
      this.couponType = this.$store.state.couponType;
      this.couponTypeId = this.$store.state.couponTypeId;
      this.$http.get(`${this.$store.state.path}stores/community/stores?communityId=${this.$store.state.storeId}&page=0&size=10000`)
        .then(res => {
          console.log(res.body)
          this.Delivery_status = res.body.result.listStoreResponseDTOS
          this.Delivery_status.unshift({storeId:"",storeName:"全部"})
        }, res => {

        })
    },
    methods: {
      checkNo(value){
        console.log(value)
        let reg = /^[1-9]\d*$/;
        if (value) {
          if (value >
            999999 || new
              RegExp(reg).test(value) ==
            false) {
            setTimeout(() => {
              this.hourMinute[0].value[0] = '';
              console.log(this.hourMinute[0].value[0])
            }, 100);
          }
        }
      },
      addDate(){
        let num = this.hourMinute.length;
        if (num > 1) {
          return
        }
        let data = {num: num, value: []}
        this.hourMinute.push(data)
      },
      delDate(e){
        let index = e;
        this.hourMinute.splice(index, 1);
        console.log(this.hourMinute)
      },
      goBack(){
        this.$router.back(-1);//f返回
      },
      saveCoupon(){
        let json = ''
        if(this.cashForms.instructions.length>200){
          this.dialogData = '使用说明最多输入200个字'
          this.dialogVisible = true
          return
        }
        if (!this.cashForms.limitExplain) {
          this.dialogData = '请输入券描述 '
          this.dialogVisible = true
          return
        }
        if (this.cashForms.limitExplain.length>16) {
          this.dialogData = '券描述过长 '
          this.dialogVisible = true
          return
        }
        if(this.couponType==2){
          if (!this.cashForms.couponName) {
            this.dialogData = '请输入券名称！'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.inventory) {
            this.dialogData = '请输入库存量！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.inventory)<=0) {
            this.dialogData = '库存量必须大于0！'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.limit) {
            this.dialogData = '请输入限领张数！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.limit)>Number(this.cashForms.inventory)) {
            this.dialogData = '限领张数不能大于库存量！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.limit)<=0) {
            this.dialogData = '限领张数不能等于0！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.limit)>10) {
            this.dialogData = '限领张数不能大于10！'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.parValue) {
            this.dialogData = '请输入券面值！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.parValue)<=0) {
            this.dialogData = '券面值必须大于0！'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.userLimit) {
            this.dialogData = '请输入使用限制！'
            this.dialogVisible = true
            return
          }
          if(Number(this.cashForms.userLimit)<Number(this.cashForms.parValue)&&this.cashForms.userLimit!=0){
            this.dialogData = '使用限制金额不能小于券面值！'
            this.dialogVisible = true
            return
          }
          if (!this.value0) {
            this.dialogData = '请输入有效期开始时间'
            this.dialogVisible = true
            return
          }
          if (!this.value1) {
            this.dialogData = '请输入有效期结束时间'
            this.dialogVisible = true
            return
          }

          let timer1 = Date.parse(this.coverTimer(this.value0+"")+' 00:00')+"";
          let timer2 = Date.parse(this.coverTimer(this.value1+"")+' 23:59')+"";
          if (Number(timer1)>=Number(timer2)){
            this.dialogData = '开始时间不能大于或者等于结束时间'
            this.dialogVisible = true
            return
          }
          if (this.radio == 1) {
            json = {
              "cardType": "CASH",
              "genAdvancedInfoVO": {},
              "genBaseInfoVO": {
                "codeType": "CODE_TYPE_QRCODE",
                "dateInfo": {
                  "beginTimestamp": timer1.substring(0, 10),
                  "endTimestamp": timer2.substring(0, 10),
                  "type": "DATE_TYPE_FIX_TIME_RANGE"
                },
                "description": this.cashForms.instructions,//卡券说明
                "getLimit": Number(this.cashForms.limit),
                "notice": this.cashForms.limitExplain,
                "sku": {
                  "quantity": Number(this.cashForms.inventory)
                },
                "title": this.cashForms.couponName
              },
              "leastCost": Number(this.cashForms.userLimit)*100,
              "reduceCost": Number(this.cashForms.parValue)*100,
              "useOnMerchantId":this.store_
            }
          }
          if (this.radio == 2) {
            let dateList = []
            let hourMinute = ``
            let hourMinute1 = ``
            let lenList = [] //时间长度
            for (let i=0;i<this.hourMinute.length;i++){
              if(this.hourMinute[i].value.length&&this.hourMinute[i].value.length!=2){
                console.log(1)
                this.dialogData = '请输入合法的时间格式'
                this.dialogVisible = true
                return
              }else if(this.hourMinute[i].value.length){
                lenList.push(this.hourMinute[i].value[0])
                lenList.push(this.hourMinute[i].value[1])
              }
            }
            for (let i=0;i<lenList.length;i++){
              if(!new  RegExp(/^[0-2][0-9]:[0-5][0-9]$/).test(lenList[i])){
                console.log(2)
                this.dialogData = '请输入合法的时间格式'
                this.dialogVisible = true
                return
              }
            }
            if(!this.checkList.length||!lenList.length){
              this.dialogData = '请选择指定时段'
              this.dialogVisible = true
              return
            }
            console.log(lenList)
            if (lenList.length == 2) hourMinute = this.hourMinute[0].value
            if (lenList.length == 4) {
              hourMinute = this.hourMinute[0].value
              hourMinute1 = this.hourMinute[1].value
            }
            if (!lenList.length) {
              for (let i = 0; i < this.checkList.length; i++) {
                if (this.checkList[i] === "周一") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "MONDAY"
                  })
                }
                if (this.checkList[i] === "周二") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59, "type": "TUESDAY"
                  })
                }
                if (this.checkList[i] === "周三") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "WEDNESDAY"
                  })
                }
                if (this.checkList[i] === "周四") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "THURSDAY"
                  })
                }
                if (this.checkList[i] === "周五") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "FRIDAY"
                  })
                }
                if (this.checkList[i] === "周六") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "SATURDAY"
                  })
                }
                if (this.checkList[i] === "周日") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "SUNDA"
                  })
                }
              }
              console.log(dateList)
//            return
            }
            if (lenList.length == 2) {
              let startTimeArr = []
              let endTimeArr = []
              let startTime = hourMinute[0]
              let endTime = hourMinute[1]
              startTimeArr = hourMinute[0].split(":")
              endTimeArr = hourMinute[1].split(":")
              console.log(Number(startTimeArr[0]))
              for (let i = 0; i < this.checkList.length; i++) {
                if (this.checkList[i] === "周一") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "MONDAY"
                  })
                }
                if (this.checkList[i] === "周二") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "TUESDAY"
                  })
                }
                if (this.checkList[i] === "周三") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "WEDNESDAY"
                  })
                }
                if (this.checkList[i] === "周四") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "THURSDAY"
                  })
                }
                if (this.checkList[i] === "周五") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "FRIDAY"
                  })
                }
                if (this.checkList[i] === "周六") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SATURDAY"
                  })
                }
                if (this.checkList[i] === "周日") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SUNDAY"
                  })
                }
              }
              console.log(dateList)
//            return
            }
            if (lenList.length == 4) {
              let startTimeArr = []
              let endTimeArr = []
              let startTimeArr1 = []
              let endTimeArr1 = []
              let startTime = hourMinute[0]
              let endTime = hourMinute[1]
              let startTime1 = hourMinute1[0]
              let endTime1 = hourMinute1[1]
              startTimeArr = hourMinute[0].split(":")
              endTimeArr = hourMinute[1].split(":")
              startTimeArr1 = hourMinute1[0].split(":")
              endTimeArr1 = hourMinute1[1].split(":")
              console.log(Number(startTimeArr[0]))
              for (let i = 0; i < this.checkList.length; i++) {
                if (this.checkList[i] === "周一") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "MONDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "MONDAY"
                  })
                }
                if (this.checkList[i] === "周二") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "TUESDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "TUESDAY"
                  })
                }
                if (this.checkList[i] === "周三") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "WEDNESDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "WEDNESDAY"
                  })
                }
                if (this.checkList[i] === "周四") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "THURSDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "THURSDAY"
                  })
                }
                if (this.checkList[i] === "周五") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "FRIDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "FRIDAY"
                  })
                }
                if (this.checkList[i] === "周六") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SATURDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "SATURDAY"
                  })
                }
                if (this.checkList[i] === "周日") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SUNDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "SUNDAY"
                  })
                }
              }
              console.log(dateList)
//            return
            }
            json = {
              "cardType": "CASH",
              "genAdvancedInfoVO": {
                "timeLimitList": dateList,
              },
              "genBaseInfoVO": {
                "codeType": "CODE_TYPE_QRCODE",
                "dateInfo": {
                  "beginTimestamp": timer1.substring(0, 10),
                  "endTimestamp": timer2.substring(0, 10),
                  "type": "DATE_TYPE_FIX_TIME_RANGE"
                },
                "description": this.cashForms.instructions,//卡券说明
                "getLimit": Number(this.cashForms.limit),
                "notice": this.cashForms.limitExplain,
                "sku": {
                  "quantity": Number(this.cashForms.inventory)
                },
                "title": this.cashForms.couponName
              },
              "leastCost": Number(this.cashForms.userLimit)*100,
              "reduceCost": Number(this.cashForms.parValue)*100,
              "useOnMerchantId":this.store_
            }
          }
        }
        if(this.couponType==3){
          if (!this.cashForms.couponName) {
            this.dialogData = '请输入券名称！'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.inventory) {
            this.dialogData = '请输入库存量！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.inventory)<=0) {
            this.dialogData = '库存量必须大于0！'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.limit) {
            this.dialogData = '请输入限领张数！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.limit)>Number(this.cashForms.inventory)) {
            this.dialogData = '限领张数不能大于库存量！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.limit)<=0) {
            this.dialogData = '限领张数不能等于0！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.limit)>10) {
            this.dialogData = '限领张数不能大于10！'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.parValue) {
            this.dialogData = '请输入折扣率！'
            this.dialogVisible = true
            return
          }
          let exl = /^\-?\d+\.?\d*$/
          if(!exl.test(this.cashForms.parValue)){
            this.dialogData = '折扣率不规范！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.parValue)<=0||Number(this.cashForms.parValue)>10) {
            this.dialogData = '折扣率必须大于0小于10！'
            this.dialogVisible = true
            return
          }
          if (!this.value0) {
            this.dialogData = '请输入有效期开始时间'
            this.dialogVisible = true
            return
          }
          if (!this.value1) {
            this.dialogData = '请输入有效期结束时间'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.limitExplain) {
            this.dialogData = '请输入券描述 '
            this.dialogVisible = true
            return
          }
          let timer1 = Date.parse(this.coverTimer(this.value0+"")+' 00:00')+"";
          let timer2 = Date.parse(this.coverTimer(this.value1+"")+' 23:59')+"";

          if (Number(timer1)>=Number(timer2)){
            this.dialogData = '开始时间不能大于或者等于结束时间'
            this.dialogVisible = true
            return
          }
          if (this.radio == 1) {
            json = {
              "cardType": "DISCOUNT",
              "genAdvancedInfoVO": {},
              "genBaseInfoVO": {
                "codeType": "CODE_TYPE_QRCODE",
                "dateInfo": {
                  "beginTimestamp": timer1.substring(0, 10),
                  "endTimestamp": timer2.substring(0, 10),
                  "type": "DATE_TYPE_FIX_TIME_RANGE"
                },
                "description": this.cashForms.instructions,//卡券说明
                "getLimit": Number(this.cashForms.limit),
                "notice": this.cashForms.limitExplain,
                "sku": {
                  "quantity": Number(this.cashForms.inventory)
                },
                "title": this.cashForms.couponName
              },
              "discount": Number(this.cashForms.parValue)*10,
              "useOnMerchantId":this.store_
            }
          }
          if (this.radio == 2) {
            let dateList = []
            let hourMinute = ``
            let hourMinute1 = ``
            let lenList = [] //时间长度
            for (let i=0;i<this.hourMinute.length;i++){
              if(this.hourMinute[i].value.length&&this.hourMinute[i].value.length!=2){
                console.log(1)
                this.dialogData = '请输入合法的时间格式'
                this.dialogVisible = true
                return
              }else if(this.hourMinute[i].value.length){
                lenList.push(this.hourMinute[i].value[0])
                lenList.push(this.hourMinute[i].value[1])
              }
            }
            for (let i=0;i<lenList.length;i++){
              if(!new  RegExp(/^[0-2][0-9]:[0-5][0-9]$/).test(lenList[i])){
                console.log(2)
                this.dialogData = '请输入合法的时间格式'
                this.dialogVisible = true
                return
              }
            }
            if(!this.checkList.length||!lenList.length){
              this.dialogData = '请选择指定时段'
              this.dialogVisible = true
              return
            }
            console.log(lenList)
            if (lenList.length == 2) hourMinute = this.hourMinute[0].value
            if (lenList.length == 4) {
              hourMinute = this.hourMinute[0].value
              hourMinute1 = this.hourMinute[1].value
            }
            if (!lenList.length) {
              for (let i = 0; i < this.checkList.length; i++) {
                if (this.checkList[i] === "周一") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "MONDAY"
                  })
                }
                if (this.checkList[i] === "周二") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59, "type": "TUESDAY"
                  })
                }
                if (this.checkList[i] === "周三") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "WEDNESDAY"
                  })
                }
                if (this.checkList[i] === "周四") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "THURSDAY"
                  })
                }
                if (this.checkList[i] === "周五") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "FRIDAY"
                  })
                }
                if (this.checkList[i] === "周六") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "SATURDAY"
                  })
                }
                if (this.checkList[i] === "周日") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "SUNDA"
                  })
                }
              }
//            return
            }
            if (lenList.length == 2) {
              let startTimeArr = []
              let endTimeArr = []
              let startTime = hourMinute[0]
              let endTime = hourMinute[1]
              startTimeArr = hourMinute[0].split(":")
              endTimeArr = hourMinute[1].split(":")
              console.log(Number(startTimeArr[0]))
              for (let i = 0; i < this.checkList.length; i++) {
                if (this.checkList[i] === "周一") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "MONDAY"
                  })
                }
                if (this.checkList[i] === "周二") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "TUESDAY"
                  })
                }
                if (this.checkList[i] === "周三") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "WEDNESDAY"
                  })
                }
                if (this.checkList[i] === "周四") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "THURSDAY"
                  })
                }
                if (this.checkList[i] === "周五") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "FRIDAY"
                  })
                }
                if (this.checkList[i] === "周六") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SATURDAY"
                  })
                }
                if (this.checkList[i] === "周日") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SUNDAY"
                  })
                }
              }
              console.log(dateList)
//            return
            }
            if (lenList.length == 4) {
              let startTimeArr = []
              let endTimeArr = []
              let startTimeArr1 = []
              let endTimeArr1 = []
              let startTime = hourMinute[0]
              let endTime = hourMinute[1]
              let startTime1 = hourMinute1[0]
              let endTime1 = hourMinute1[1]
              startTimeArr = hourMinute[0].split(":")
              endTimeArr = hourMinute[1].split(":")
              startTimeArr1 = hourMinute1[0].split(":")
              endTimeArr1 = hourMinute1[1].split(":")
              console.log(Number(startTimeArr[0]))
              for (let i = 0; i < this.checkList.length; i++) {
                if (this.checkList[i] === "周一") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "MONDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "MONDAY"
                  })
                }
                if (this.checkList[i] === "周二") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "TUESDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "TUESDAY"
                  })
                }
                if (this.checkList[i] === "周三") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "WEDNESDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "WEDNESDAY"
                  })
                }
                if (this.checkList[i] === "周四") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "THURSDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "THURSDAY"
                  })
                }
                if (this.checkList[i] === "周五") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "FRIDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "FRIDAY"
                  })
                }
                if (this.checkList[i] === "周六") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SATURDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "SATURDAY"
                  })
                }
                if (this.checkList[i] === "周日") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SUNDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "SUNDAY"
                  })
                }
              }
              console.log(dateList)
//            return
            }
            json = {
              "cardType": "DISCOUNT",
              "genAdvancedInfoVO": {
                "timeLimitList": dateList,
              },
              "genBaseInfoVO": {
                "codeType": "CODE_TYPE_QRCODE",
                "dateInfo": {
                  "beginTimestamp": timer1.substring(0, 10),
                  "endTimestamp": timer2.substring(0, 10),
                  "type": "DATE_TYPE_FIX_TIME_RANGE"
                },
                "description": this.cashForms.instructions,//卡券说明
                "getLimit": Number(this.cashForms.limit),
                "notice": this.cashForms.limitExplain,
                "sku": {
                  "quantity": Number(this.cashForms.inventory)
                },
                "title": this.cashForms.couponName
              },
              "discount": Number(this.cashForms.parValue)*10,
              "useOnMerchantId":this.store_
            }
          }
        }
        if(this.couponType==5){
          if (!this.cashForms.couponName) {
            this.dialogData = '请输入券名称！'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.inventory) {
            this.dialogData = '请输入库存量！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.inventory)<=0) {
            this.dialogData = '库存量必须大于0！'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.limit) {
            this.dialogData = '请输入限领张数！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.limit)>Number(this.cashForms.inventory)) {
            this.dialogData = '限领张数不能大于库存量！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.limit)<=0) {
            this.dialogData = '限领张数不能等于0！'
            this.dialogVisible = true
            return
          }
          if (Number(this.cashForms.limit)>10) {
            this.dialogData = '限领张数不能大于10！'
            this.dialogVisible = true
            return
          }
          if (!this.value0) {
            this.dialogData = '请输入有效期开始时间'
            this.dialogVisible = true
            return
          }
          if (!this.value1) {
            this.dialogData = '请输入有效期结束时间'
            this.dialogVisible = true
            return
          }
          if (!this.cashForms.limitExplain) {
            this.dialogData = '请输入券描述 '
            this.dialogVisible = true
            return
          }
          let timer1 = Date.parse(this.coverTimer(this.value0+"")+' 00:00')+"";
          let timer2 = Date.parse(this.coverTimer(this.value1+"")+' 23:59')+"";
          if (Number(timer1)>=Number(timer2)){
            this.dialogData = '开始时间不能大于或者等于结束时间'
            this.dialogVisible = true
            return
          }
          if (this.radio == 1) {
            json = {
              "cardType": "GENERAL_COUPON",
              "genAdvancedInfoVO": {},
              "genBaseInfoVO": {
                "codeType": "CODE_TYPE_QRCODE",
                "dateInfo": {
                  "beginTimestamp": timer1.substring(0, 10),
                  "endTimestamp": timer2.substring(0, 10),
                  "type": "DATE_TYPE_FIX_TIME_RANGE"
                },
                "description": this.cashForms.instructions,//卡券说明
                "getLimit": Number(this.cashForms.limit),
                "notice": this.cashForms.limitExplain,
                "sku": {
                  "quantity": Number(this.cashForms.inventory)
                },
                "title": this.cashForms.couponName
              },
              "defaultDetail":this.cashForms.limitExplain,
              "useOnMerchantId":this.store_
            }
          }
          if (this.radio == 2) {
            let dateList = []
            let hourMinute = ``
            let hourMinute1 = ``
            let lenList = [] //时间长度
            for (let i=0;i<this.hourMinute.length;i++){
              if(this.hourMinute[i].value.length&&this.hourMinute[i].value.length!=2){
                console.log(1)
                this.dialogData = '请输入合法的时间格式'
                this.dialogVisible = true
                return
              }else if(this.hourMinute[i].value.length){
                lenList.push(this.hourMinute[i].value[0])
                lenList.push(this.hourMinute[i].value[1])
              }
            }
            for (let i=0;i<lenList.length;i++){
              if(!new  RegExp(/^[0-2][0-9]:[0-5][0-9]$/).test(lenList[i])){
                console.log(2)
                this.dialogData = '请输入合法的时间格式'
                this.dialogVisible = true
                return
              }
            }
            if(!this.checkList.length||!lenList.length){
              this.dialogData = '请选择指定时段'
              this.dialogVisible = true
              return
            }
            console.log(lenList)
            if (lenList.length == 2) hourMinute = this.hourMinute[0].value
            if (lenList.length == 4) {
              hourMinute = this.hourMinute[0].value
              hourMinute1 = this.hourMinute[1].value
            }
            if (!lenList.length) {
              for (let i = 0; i < this.checkList.length; i++) {
                if (this.checkList[i] === "周一") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "MONDAY"
                  })
                }
                if (this.checkList[i] === "周二") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59, "type": "TUESDAY"
                  })
                }
                if (this.checkList[i] === "周三") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "WEDNESDAY"
                  })
                }
                if (this.checkList[i] === "周四") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "THURSDAY"
                  })
                }
                if (this.checkList[i] === "周五") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "FRIDAY"
                  })
                }
                if (this.checkList[i] === "周六") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "SATURDAY"
                  })
                }
                if (this.checkList[i] === "周日") {
                  dateList.push({
                    "beginHour": 0,
                    "beginMinute": 0,
                    "endHour": 23,
                    "endMinute": 59,
                    "type": "SUNDA"
                  })
                }
              }
//            return
            }
            if (lenList.length == 2) {
              let startTimeArr = []
              let endTimeArr = []
              let startTime = hourMinute[0]
              let endTime = hourMinute[1]
              startTimeArr = hourMinute[0].split(":")
              endTimeArr = hourMinute[1].split(":")
              console.log(Number(startTimeArr[0]))
              for (let i = 0; i < this.checkList.length; i++) {
                if (this.checkList[i] === "周一") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "MONDAY"
                  })
                }
                if (this.checkList[i] === "周二") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "TUESDAY"
                  })
                }
                if (this.checkList[i] === "周三") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "WEDNESDAY"
                  })
                }
                if (this.checkList[i] === "周四") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "THURSDAY"
                  })
                }
                if (this.checkList[i] === "周五") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "FRIDAY"
                  })
                }
                if (this.checkList[i] === "周六") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SATURDAY"
                  })
                }
                if (this.checkList[i] === "周日") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SUNDAY"
                  })
                }
              }
              console.log(dateList)
//            return
            }
            if (lenList.length == 4) {
              let startTimeArr = []
              let endTimeArr = []
              let startTimeArr1 = []
              let endTimeArr1 = []
              let startTime = hourMinute[0]
              let endTime = hourMinute[1]
              let startTime1 = hourMinute1[0]
              let endTime1 = hourMinute1[1]
              startTimeArr = hourMinute[0].split(":")
              endTimeArr = hourMinute[1].split(":")
              startTimeArr1 = hourMinute1[0].split(":")
              endTimeArr1 = hourMinute1[1].split(":")
              console.log(Number(startTimeArr[0]))
              for (let i = 0; i < this.checkList.length; i++) {
                if (this.checkList[i] === "周一") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "MONDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "MONDAY"
                  })
                }
                if (this.checkList[i] === "周二") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "TUESDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "TUESDAY"
                  })
                }
                if (this.checkList[i] === "周三") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "WEDNESDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "WEDNESDAY"
                  })
                }
                if (this.checkList[i] === "周四") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "THURSDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "THURSDAY"
                  })
                }
                if (this.checkList[i] === "周五") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "FRIDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "FRIDAY"
                  })
                }
                if (this.checkList[i] === "周六") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SATURDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "SATURDAY"
                  })
                }
                if (this.checkList[i] === "周日") {
                  dateList.push({
                    "beginHour": Number(startTimeArr[0]),
                    "beginMinute": Number(startTimeArr[1]),
                    "endHour": Number(endTimeArr[0]),
                    "endMinute": Number(endTimeArr[1]),
                    "type": "SUNDAY"
                  }, {
                    "beginHour": Number(startTimeArr1[0]),
                    "beginMinute": Number(startTimeArr1[1]),
                    "endHour": Number(endTimeArr1[0]),
                    "endMinute": Number(endTimeArr1[1]),
                    "type": "SUNDAY"
                  })
                }
              }
              console.log(dateList)
//            return
            }
            json = {
              "cardType": "GENERAL_COUPON",
              "genAdvancedInfoVO": {
                "timeLimitList": dateList,
              },
              "genBaseInfoVO": {
                "codeType": "CODE_TYPE_QRCODE",
                "dateInfo": {
                  "beginTimestamp": timer1.substring(0, 10),
                  "endTimestamp": timer2.substring(0, 10),
                  "type": "DATE_TYPE_FIX_TIME_RANGE"
                },
                "description": this.cashForms.instructions,//卡券说明
                "getLimit": Number(this.cashForms.limit),
                "notice": this.cashForms.limitExplain,
                "sku": {
                  "quantity": Number(this.cashForms.inventory)
                },
                "title": this.cashForms.couponName
              },
              "defaultDetail":this.cashForms.limitExplain,
              "useOnMerchantId":this.store_
            }
          }
        }
        console.log(JSON.stringify(json))
        if(this.limitFlag){
          return
        }
        this.limitFlag = true
        this.$store.state.loadingFlag = true
        this.$http.post(`${this.$store.state.path}cards/cashcard?communityId=${this.$store.state.storeId}`, json)
          .then(res => {
            this.limitFlag = false
            this.$store.state.loadingFlag = false
            if(!res.body.result){
                console.log(res.body.msg.indexOf('invalid use time limit hint'))
              if(res.body.errMsg.indexOf('invalid use time limit hint')>-1){
                this.dialogData = `你输入时间格式有误`
                this.dialogVisible = true
              }else {
                this.dialogData = res.body.msg
                this.dialogVisible = true
              }
              return
              if(res.body.errMsg.indexOf("invalid use time limit hint")>=0){
                this.dialogData = '你输入时间格式有误'
                this.dialogVisible = true
                return
              }
            }
            if(res.body.result){
              this.$router.push({path: `/cardCouponsList`})
            }
          }, res => {
            this.limitFlag = false
          })
      },
      addCashCoupons(){//新建代金券

      },
      addsSatisfyCoupons(){//新建满减券

      },
      addDiscountCoupons(){//新建折扣券

      }
    },
    watch: {
      checkList(val){
        console.log(val)
      },
      "cashForms.inventory"(value){
          console.log(value)
//        if(String(value).length>10){
//          this.cashForms.limit = '';
//        }
        let reg = /^[0-9]\d*$/;
        if (value) {
          if (!new RegExp(reg).test(value)) {
            setTimeout(() => {
              this.cashForms.inventory = '';
            }, 100);
          }
        }
      },
      "cashForms.limit"(value){
        let reg = /^[0-9]\d*$/;
        if (value) {
          if (!new RegExp(reg).test(value)) {
            setTimeout(() => {
              this.cashForms.limit = '';
            }, 100);
          }
        }
      },
      "cashForms.parValue"(value){
//        let reg = /^[0-9]\d*$/;
//        if (value) {
//          if (!new RegExp(reg).test(value)) {
//            setTimeout(() => {
//              this.cashForms.parValue = '';
//            }, 100);
//          }
//        }
      },
      "cashForms.userLimit"(value){
//        let reg = /^[1-9]\d*$/;
        let reg = /^[0-9]\d*$/;
        if (value) {
          if (!new RegExp(reg).test(value)) {
            setTimeout(() => {
              this. cashForms.userLimit = '';
            }, 100);
          }
        }
      },
    }
  }
</script>
<style scoped>

  .body .menu ul li {
    margin-top: 20px;
    color: #656D78;
    position: relative;
    margin-bottom: 10px;
  }

  .body .el-form-item {
    width: 400px !important;
  }

  #app .body .mask {
    z-index: 501;
  }

  .body .centerBox {
    width: 90%;
    height: 85% !important;
    margin: 20px 20px 0;
    border: 1px solid rgba(4, 4, 4, 0.09);
    border-bottom: 2px solid rgba(4, 4, 4, 0.09);
    border-radius: 5px;
    padding-left: 120px;
  }

  .body .el-form-item .el-input {
    width: 80%;
  }

  .body .daijin .spandj {
    /*display: inline-block;*/
    margin-left: 10px;
  }

  .body {
    background-color: #f8f9f9;
    /*margin: 30px 60px 0 60px;*/
  }

  .body .a_top {
    height: 40px;
    position: relative;
  }

  .body span {
    /*font-size: 14px!important;*/
  }

  .menu {
    width: 100%;
    margin: 0;
    background-color: white;
  }

  .lastList div {
    line-height: 36px;
  }

  .see > span {
    font-size: 14px;
    position: relative;
    bottom: 5px;
  }

  .xj_fullcut > span {
    font-size: 14px;

  }

  .xj_fullcut {
    width: 85px;
    height: 34px;

  }

  .rq_fullcut > span {
    font-size: 14px;
  }

  .cx_fullcut > span {
    font-size: 14px;
  }

  .fullcut_menu {
    margin-top: 20px;
    font-size: 14px;
  }

  .font_cut {
    color: #999;
    font-size: 18px !important;
  }

  .body #c_input1 {
    width: 210px !important;
  }

  .body #c_input2 {
    width: 210px !important;
  }

  .reminder {
    font-size: 14px;
    color: #656D78;
  }

  .font_acut {
    font-size: 18px !important;
    color: #F58534;
  }

  .body .el-button {
    background-color: rgba(87, 189, 222, 1);
    color: white;
    border: rgba(87, 189, 222, 1);
  }

  .body .elem {

  }

  .generation {
    font-size: 14px;
    color: #656D78;
  }

  .porting_line {
    border-bottom: 1px solid #EBEBEB;
  }

  .centent {
    padding-bottom: 50px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  /*所有选项的类目样式*/
  .centent .name {
    height: 40px;
    line-height: 36px;
    display: inline-block;
    color: #656D78;
    float: left;
  }

  /*所有输入框及后面样式*/
  .centent .coupon_certer {
    margin-left: 82px;
    overflow: hidden;
  }

  .centent .coupon_bu {
    width: 213px;
    height: 40px;
  }

  /*经费承担样式*/
  .centent .funds {
    margin-left: 82px;
    /*height: 40px;*/
    line-height: 36px;
  }

  /*尾端灰字样式*/
  .centent .font {
    color: rgba(87, 189, 222, 1);
    margin-left: 17px;
    line-height: 36px;
  }
  .limitTips{
    color: red;
  }

  /*有效期样式*/
  .centent .time_radio {
  }

  .centent .time_radio .radio {
    margin: 11px 0 0 0;
    width: 100%;
  }

  .centent .time_radio_2 .week {
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .centent .time_radio_2 .setDate {
  }

  .centent .time_radio_2 .setDate .hourMinute {
    margin-top: 10px;
  }

  .centent .time_radio_2 .setDate .hourMinute .inp {
    width: 134px;
    height: 40px;
  }

  .centent .time_radio_2 .setDate .hourMinute ._xian {
    width: 80px;
    height: 40px;
    display: inline-block;
    text-align: center;
  }

  /*使用说明*/
  .centent .coupon_area {
    width: 497px;
    height: 112px !important;
  }

  .centent .coupon_area > .el-textarea__inner {
    height: 100% !important;
  }
</style>

